import Vue from 'vue'
import Vuex from 'vuex'
import vuexPer from "vuex-persistedstate"
import getters from "./getters"
import mutations from "./mutations"
import actions from "./actions"

Vue.use(Vuex)
const state = {
  menuList:[],
  menuRoutes:[],
  one: "",
  two: "",
  showBread:false,
  activeMenu:"-1"
}
//  this.$store.state.menuRoutes
//  this.$store.getters.getMenuRoutes  mapGetters

export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions,
  plugins:[
    vuexPer()
  ]
})
